home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2005 May / CyberMycha 05-2005 (Poland).bin / Immortal / cotndemo.exe / Data1.cab / shadow.psh < prev    next >
Encoding:
Text File  |  2004-11-16  |  274 b   |  8 lines

  1. // pixel shader for use when rendering from light viewpoint for shadowmap texture
  2.  
  3. ps_2_0                // version
  4. dcl t0.x            // vertex shader sets the depth and puts it here
  5. mov r0,t0.x            // can't go directly from t0.x to oC0
  6. mov oC0,r0            // so have to use temporary register
  7.  
  8.